package com.huowenjie.entity;


import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.stereotype.Component;

@Document(collection = "test-student")
@Data
public class Student {

    @Field("_id")
    private String _id;

    @Field("id")
    private Integer id;

    @Field("name")
    private String name;

    @Field("code")
    private String code;

    @Field("phone")
    private String phone;

    @Field("age")
    private Integer age;

    @Field("sex")
    private String sex;
}
